import { useDictionaryTable } from './useDictionaryTable';

import { useDictionaryTypeTree } from './useDictionaryTypeTree';

export const useDictionaryTypeData = () => {
  const { reloadTree, treeData, treeLoading } = useDictionaryTypeTree();
  const { reloadTableDataSource, tableDataSource, tableLoading } =
    useDictionaryTable();
  return {
    reloadTree,
    reloadTableDataSource,
    treeData,
    tableLoading,
    tableDataSource,
    treeLoading,
  };
};
